/*
 * @Author: lusx 
 * @Date: 2020-04-15 16:26:25 
 * @Last Modified by: lusx
 * @Last Modified time: 2020-04-15 17:32:45
 */
import React from 'react';
import { withRouter } from "react-router-dom";
import { observer, inject } from "mobx-react";
import { asyncComponent } from "react-async-component";
const coms = {
    MainListPage: asyncComponent({
        resolve: () => import("../main/pages/mainListPage")
    })
};
// const Remind = inject('mainStore')(observer((props) => {
//     const text = '"完成XXX指标"任务到达,请及时处理 !';
//     const {
//         listViewStore
//       } = mainStore;
//     return (
//         <div className='govern-remind'>
//             <coms.MainListPage
//                 listViewStore={listViewStore}
//                 provider={false}
//             />
//         </div>
//     )
// }))
// export { Remind }
@inject("mainStore")
@withRouter
@observer
class Remind extends React.PureComponent {
    componentDidMount() {
        const {
            mainStore: { getSelectKey, initDatas }
        } = this.props;
        getSelectKey("0");
        const pathname = "/pro/newduty";
        initDatas({ path: pathname }); //搜索时不在初始化该页面
    }
    render() {
        const {listViewStore} = this.props.mainStore;
        return (
            <div className='govern-remind'>
                <coms.MainListPage
                    listViewStore={listViewStore}
                    provider={false}
                />
            </div>
        )
    }
}
export { Remind }